package com.example.nacoscloudconsumer.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Component
@FeignClient("zookeeper")
public interface ZooService {

    @RequestMapping(method = RequestMethod.GET, value = "/createNode")
    String createNode();

    @RequestMapping(method = RequestMethod.GET, value = "/deleteNode")
    String deleteNode();

    @RequestMapping(method = RequestMethod.GET, value = "/getNodes")
    String getNodes();

    @RequestMapping(method = RequestMethod.GET, value = "/getData")
    String getData();
}
